<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <script>
        (function (doc, win) {
            let docEl = doc.documentElement,
                resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                recalc = function () {
                    let clientWidth = docEl.clientWidth;
                    console.log('clientWidth', clientWidth)
                    if (!clientWidth) return;
                    if (clientWidth >= 750) {
                        docEl.style.fontSize = '10px';
                    } else {
                        docEl.style.fontSize = 20 * (clientWidth / 750) + 'px';
                    }
                };

            if (!doc.addEventListener) return;
            win.addEventListener(resizeEvt, recalc, false);
            doc.addEventListener('DOMContentLoaded', recalc, false);
        })(document, window);
    </script>
    <title>标题</title>
    <style>

        /*
            1rem = 10px
         */
        * {
            margin: 0;
            padding: 0;
        }

        /*搜索栏*/
        .search {
            display: flex;
            justify-content: space-between;
            margin: 4rem 2rem 0;
            height: 4rem;
            align-items: center;
        }

        .search-bar {
            display: flex;
            position: relative;
            width: 100%;
            align-items: center;
        }

        .search-img {
            width: 2rem;
            position: absolute;
            left: 0.8rem;
        }

        .search-placeholder {
            border: none;
            background: #f3f3f3;
            width: 26rem;
            border-radius: 2rem;
            outline: none;
            height: 3.3rem;
            /*改变提示文字的距离*/
            padding-left: 3rem;
        }
        .search-placeholder::placeholder{
            padding-left: 0.5rem;
        }
        

        .search-add {
            margin-top: 0.4rem;
        }

        .search-add-img {
            width: 2.4rem;
        }
        
        /*滑动标题*/
        .title{
            display: flex;
            align-items: center;
            margin: 1rem 2rem 0;
        }
        .title-list{
            display: flex;
            width: 32rem;
            justify-content: space-around;
        }
        .title-text{
            font-size: 1.7rem;
            color: #868584;
        }
        .title-active{
            position: relative;
            color: #000000;
        }
        .title-active::after{
            content: "";
            position: absolute;
            top: 2.7rem;
            left: 0.6rem;
            width: 1.6rem;
            background: #3d5881;
            height: 0.4rem;
            border-radius: 0.2rem;
        }
        .title-img{
            width: 2rem;
            margin-top: 0.4rem;
        }
        
        /*
            轮播图
         */
        .slide{
            position: relative;
            margin-top: 1.3rem;
        }
        .slide-img1{
            width: 37.5rem;
            height: 16.4rem;
        }
        .slide-ul{
            position: absolute;
            left: 16rem;
            display: flex;
            list-style: none;
            bottom: 1rem;
            width: 7rem;
            justify-content: space-evenly;
        }
        .slide-li{
            width: 0.6rem;
            background-color: #ffffff;
            height: 0.6rem;
            border-radius: 0.3rem;
        }
        .slide-li-active{
            background-color: #3d5881;
        }
        
        /*主体新闻*/
        .news{
            margin: 2rem 2rem 0;
        }
        .news-content{
            display: flex;
        }
        .news-left{
            
        }
        .news-left-img{
            width: 11rem;
            height: 8rem;
            border-radius: 0.8rem;
        }
        
        .news-right{
            padding-left: 2rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .news-title{
            font-size: 1.5rem;
            color: #838485;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .news-info{
            display: flex;
            justify-content: space-between;
            padding-bottom: 0.5rem;
        }
        .news-info-name{
            color: #aaa5a3;
        }
        .news-info-comment{
            display: flex;
            width: 8rem;
            justify-content: space-between;
        }
        .news-likes{
            display: flex;
            justify-content: space-between;
            width: 50%;
        }
        .news-likes-img{
            width: 1.4rem;
            opacity: 0.5;
        }
        .news-likes-font{
            color: #aaa5a3;
        }
        .news-views{
            display: flex;
            justify-content: space-between;
            width: 50%;
            margin-left: 1rem;
        }
        /*横线*/
        .news-line{
            border: 0.1rem solid #ccc;
            margin: 1rem 0;
            transform: scaleY(0.5);
        }

       /* 下边的导航*/
        .bottom{
            position: fixed;
            bottom: 0;
            z-index: 100;
            width: 100%;
            border-top: 0.1rem solid #cccccc;
            background: #ffffff;
            height: 6rem;
            display: flex;
            justify-content: space-evenly;
        }
        .bottom-recommend{
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .bottom-img{
            width: 4rem;
        }
        
    </style>
</head>
<body>
<!--搜索-->
<div class="search">
    <div class="search-bar">
        <img class="search-img" src="./images/search.png" alt="">
        <input type="text" class="search-placeholder" placeholder="搜索感兴趣的内容和用户">
    </div>
    <div class="search-add">
        <img class="search-add-img" src="./images/add.png" alt="">
    </div>
</div>
<!--滑动标题-->
<div class="title">
    <div class="title-list">
        <div class="title-active title-text">发现</div>
        <div class="title-text">此刻</div>
        <div class="title-text">品牌</div>
        <div class="title-text">视频</div>
        <div class="title-text">资讯</div>
        <div class="title-text">活动</div>
    </div>
    <div class="title-more">
        <img class="title-img" src="./images/liebiao.png" alt="">
    </div>
</div>
<!--轮播图-->
<div class="slide">
    <img class="slide-img1" src="./images/slide.jpg" alt="">
    <ul class="slide-ul">
        <li class="slide-li"></li>
        <li class="slide-li slide-li-active"></li>
        <li class="slide-li"></li>
        <li class="slide-li"></li>
        <li class="slide-li"></li>
        <li class="slide-li"></li>
    </ul>
</div>
<!--主体新闻-->
<div class="news">
    <!--第一个-->
    <div class="news-content">
        <div class="news-left">
            <img class="news-left-img" src="./images/img1.jpg" alt="">
        </div>
        <div class="news-right">
            <div class="news-title">
                冬天到了,气温也已经跌破零度. 沃友们抱怨冬天充电太慢了吧吧吧吧吧吧
            </div>
            <div class="news-info">
                <div class="news-info-name">
                    沃尔沃官方
                </div>
                <div class="news-info-comment">
                    <div class="news-likes">
                        <img class="news-likes-img" src="./images/dianzan.png" alt="">
                        <span class="news-likes-font">45</span>
                    </div>
                    <div class="news-views">
                        <img class="news-likes-img" src="./images/view.png" alt="">
                        <span class="news-likes-font">12</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="news-line"></div>
    <!--第二个-->
    <div class="news-content">
        <div class="news-left">
            <img class="news-left-img" src="./images/img1.jpg" alt="">
        </div>
        <div class="news-right">
            <div class="news-title">
                冬天到了,气温也已经跌破零度. 沃友们抱怨冬天充电太慢了吧吧吧吧吧吧
            </div>
            <div class="news-info">
                <div class="news-info-name">
                    沃尔沃官方
                </div>
                <div class="news-info-comment">
                    <div class="news-likes">
                        <img class="news-likes-img" src="./images/dianzan.png" alt="">
                        <span class="news-likes-font">45</span>
                    </div>
                    <div class="news-views">
                        <img class="news-likes-img" src="./images/view.png" alt="">
                        <span class="news-likes-font">12</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="news-line"></div>
    <!--第三个-->
    <div class="news-content">
        <div class="news-left">
            <img class="news-left-img" src="./images/img1.jpg" alt="">
        </div>
        <div class="news-right">
            <div class="news-title">
                冬天到了,气温也已经跌破零度. 沃友们抱怨冬天充电太慢了吧吧吧吧吧吧
            </div>
            <div class="news-info">
                <div class="news-info-name">
                    沃尔沃官方
                </div>
                <div class="news-info-comment">
                    <div class="news-likes">
                        <img class="news-likes-img" src="./images/dianzan.png" alt="">
                        <span class="news-likes-font">45</span>
                    </div>
                    <div class="news-views">
                        <img class="news-likes-img" src="./images/view.png" alt="">
                        <span class="news-likes-font">12</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="news-line"></div>
    <!--第四个-->
    <div class="news-content">
        <div class="news-left">
            <img class="news-left-img" src="./images/img1.jpg" alt="">
        </div>
        <div class="news-right">
            <div class="news-title">
                冬天到了,气温也已经跌破零度. 沃友们抱怨冬天充电太慢了吧吧吧吧吧吧
            </div>
            <div class="news-info">
                <div class="news-info-name">
                    沃尔沃官方
                </div>
                <div class="news-info-comment">
                    <div class="news-likes">
                        <img class="news-likes-img" src="./images/dianzan.png" alt="">
                        <span class="news-likes-font">45</span>
                    </div>
                    <div class="news-views">
                        <img class="news-likes-img" src="./images/view.png" alt="">
                        <span class="news-likes-font">12</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="news-line"></div>
    
</div>
<!--下边的导航-->
<div class="bottom">
    <div class="bottom-recommend">
        <img class="bottom-img" src="./images/qiche.png" alt="">
        <span>推荐</span>
    </div>
    <div class="bottom-recommend">
        <img class="bottom-img" src="./images/qiche.png" alt="">
        <span>推荐</span>
    </div>
    <div class="bottom-recommend">
        <img class="bottom-img" src="./images/qiche.png" alt="">
        <span>推荐</span>
    </div>
    <div class="bottom-recommend">
        <img class="bottom-img" src="./images/qiche.png" alt="">
        <span>推荐</span>
    </div>
    <div class="bottom-recommend">
        <img class="bottom-img" src="./images/qiche.png" alt="">
        <span class="bottom-text">推荐</span>
    </div>
</div>
</body>
</html>